package com.hai.boot.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.hai.boot.pojo.BaseRoute;
import com.hai.boot.service.BaseRouteService;

@Controller
public class BaseRouteController {
	@Autowired
	private BaseRouteService baseRouteService;
	@RequestMapping("/table")
	public String ToTable(Model model) {
		List<BaseRoute> list = baseRouteService.list();
		model.addAttribute("baselist",list);
		return "table";
	}
}
